{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">


        <table class="table table-hover">

            <!-- On rows -->
            <tr>
                <th class="active">ID</th>
                <th class="active">封面</th>
                <th class="success">书名</th>
                <th class="success">作者</th>
                <th class="active">所属分类</th>
                <!-- <th class="active">小说简介</th> -->
                <th class="active">是否完结</th>
                <th class="active">是否热销</th>
                <th class="active">上架时间</th>
                <th class="info">操作</th>
            </tr>
            <!-- On cells (`td` or `th`) -->
            {volist name="data" id="vo"}
            <tr >
                <td style="line-height: 40px">{$vo.id}</td>
                <td style="line-height: 40px"><img src="/uploads/{$vo.photo}" alt="" width="40px"></td>
                <td style="line-height: 40px">{$vo.name}</td>
                <td style="line-height: 40px">{$vo.zuozhe}</td>
                <td style="line-height: 40px">{$vo.cname}</td>
                <td style="line-height: 40px">{$vo.end ==0? '已完结' : '连载中'}</td>
                <td style="line-height: 40px"><a href="{:url('admin/tushu/dostatu',['id'=>$vo.id])}">{$vo.hot==0? '火爆' : '冷却'}</a></td>
                <td style="line-height: 40px">{:date('Y-m-d',$vo.addtime)}</td>
                <td style="line-height: 40px">
                    <a class="btn btn-default" href="{:url('admin/tushu/edit',['id'=>$vo.id])}" >修改</a>
                    <a class="btn btn-default" href="{:url('admin/tushu/del',['id'=>$vo.id])}" >删除</a>
                    <a class="btn btn-default" href="{:url('admin/Chapter/select',['id'=>$vo.id])}" >查看章节</a>
                    <a class="btn btn-default" href="{:url('admin/Chapter/add',['id'=>$vo.id])}" >添加章节</a>



                </td>
            </tr>
            {/volist}
        </table>
    </div>
</div>

{/block}
